package org.adream.account.controller;

import java.util.List;
import java.util.Map;

import org.adream.account.service.IntegralRuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class IntergalRuleController {
	
	@Autowired
	IntegralRuleService integralRuleService;
	
	@RequestMapping("integralManagePage")
	public ModelAndView integralRuleSetPage() {
		ModelAndView mv = new ModelAndView("/integralManage/integral_manage");
		List<Map<String,Object>> rlt = integralRuleService.searchIntegralInfo();
		mv.addObject("list", rlt);
		return mv;
	}
	
	@RequestMapping("integralRulePage")
	public ModelAndView integralRulePage() {
		ModelAndView mv = new ModelAndView("/integralManage/integral_rule");
		return mv;
	}
}